namespace IMPlant.Core.Web.Control
{
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Reflection;
    using System.Web.UI;

    [ToolboxItem(false), ParseChildren(true)]
    public class CascadeCheckboxes : CollectionBase
    {
        public void Add(CascadeCheckbox item)
        {
            base.List.Add(item);
        }

        public void Remove(int index)
        {
            if ((index > -1) && (index < base.Count))
            {
                base.List.RemoveAt(index);
            }
        }

        public CascadeCheckbox this[int index]
        {
            get
            {
                return (CascadeCheckbox) base.List[index];
            }
            set
            {
                base.List[index] = value;
            }
        }
    }
}

